package bit.lotterysystem.controller.result;


import bit.lotterysystem.service.enums.ActivityPrizeStatusEnum;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class GetActivityDetailResult implements Serializable {

    //活动信息
    private Long activityId;

    private String activityName;

    private String description;//活动描述


    //活动是否有效
    public Boolean valid;

    //奖品信息列表
    private List<Prize> prizes;

    //人员信息列表
    private List<User> users;

    /**
     * Lombok 注解（如 @Data、@Getter、@Setter）默认只对当前注解标注的类生效
     */
    @Data
    public static class Prize{
        //奖品id
        private Long prizeId;
        //奖品名
        private String name;
        //图片索引
        private String imageUrl;

        private BigDecimal price;

        private String description;
        /**
         * 奖品等级
         * @see ActivityPrizeStatusEnum#getMessage()
         */
        private String prizeTierName;

        private Long prizeAmount;
        /**
         * 奖品是否有效
         */
        public Boolean valid;
    }

    @Data
    public static class User{
        private Long userId;

        private String userName;
        /**
         * 人员是否被抽取
         */
        private Boolean valid;
    }
}
